package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface UserMapper {

    //通过openid查找用户
    User getByOpenId(String openid);

    //插入新用户
    void insert(User user);

    //查询用户
    User getById(Long id);

    //查询用户数量
    Integer countByMap(Map map);
}
